const router = require('koa-router')();
exports = module.exports = router;

router.get('/:city/publish', async (ctx, next) => {
    // 发布信息需要先登录
    let city = ctx.params.city;
    if (!ctx.hasLogin) {
        return ctx.redirect('/'+city+'/signin');
    }
    return await ctx.render('publish/index');
});
